package com.alks.function.data.dto.pcfactoryquery;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Setter
@Getter
@NoArgsConstructor
public class PcMtlAccDto {
    @ApiModelProperty(value = "材料颜色")
    private String mtlColor;

    @ApiModelProperty(value = "材料名字")
    private String mtlName;

    @ApiModelProperty(value = "材料规格")
    private String mtlSpec;

    @ApiModelProperty(value = "材料单位")
    private String mtlUnit;

    @DateTimeFormat("yyyy/MM/dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "入库时间")
    private LocalDateTime recDate;

    @DateTimeFormat("yyyy/MM/dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "出库时间")
    private LocalDateTime traDate;

    @ApiModelProperty(value = "材料ID")
    private String mtlNo;

    @NumberFormat
    @ApiModelProperty(value = "入库总数")
    private BigDecimal inQty;

    @NumberFormat
    @ApiModelProperty(value = "出库总数")
    private BigDecimal outQty;

    @NumberFormat
    @ApiModelProperty(value = "库存余量")
    private BigDecimal stkQty;

    @ApiModelProperty(value = "库位")
    private String stkPosition;

}
